<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>解构赋值</title>
	</head>
	<body>
		<script>
			let {
				title: titleName,
				test: [{
					data: dataInfo
				}]
			} = {
				title: "跨平台移动应用",
				test: [{
					data: "uni-app"
				}]
			};
			console.log(titleName,dataInfo);
			
			let a=1;
			let b=2;
			//实现a和b的交互
			[a,b]=[b,a];
			console.log(a,b);
		</script>
	</body>
</html>
